package org.trialiet.notedemo.util;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by Trialiet on 2016/5/6.
 */
public class SharedPreferenceUtil {
    public static Long getLoginUser(Context context){
        SharedPreferences sp = context.getSharedPreferences("LoginUser", Context.MODE_PRIVATE);
        Long userId = sp.getLong("user_id", 0);
        return userId;
    }
}
